package com.peachcastle.core
{
	import flash.display.Loader;
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.ProgressEvent;
	import flash.net.URLRequest;
	import flash.net.URLRequestHeader;
	import flash.system.LoaderContext;

	public class GameLoader extends Loader
	{
		
		private var _request:URLRequest = null;
		private var _header:URLRequestHeader = null;
		
		public function GameLoader() 
		{
			_header = new URLRequestHeader("Cache-control", "no-store, no-cache, must-revalidate, post-check=0, pre-check=0");
			_request = new URLRequest();
			_request.requestHeaders.push(_header);
		}
		
		
		public function loadRec(url:String="", loadercontent:LoaderContext = null):void
		{
			_request.url = url;
			this.load(_request, loadercontent);
		}
	}

}